/**
 * Created by evantang on 2018/2/27.
 */
import {RestResult} from "../../entity/rest-result";
export function isSuccess(result: RestResult<any>) : boolean {
  if (result !== null && result.message === 'success') {
    return true;
  }
  return false;
}
